#coding=utf-8
#首页-控件集合
class mainPage():
    #底部控件
    def __init__(self,driver):
        self.driver = driver
    def mainTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_text")[0]
    def discoverTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_text")[1]
    def xinyuan(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_text")[2]
    def myTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_text")[3]
    def locationTab(self):
        return self.driver.find_element_by_id("com.guokr.mentor:id/text_view_location")
    #推荐分类
    def workDevelopmentTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_tag_name")[0]
    def industryTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_tag_name")[1]
    def internetTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_tag_name")[2]
    def heartTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_tag_name")[3]
    def lifeTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_tag_name")[4]
    def startTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_tag_name")[5]
    def studyTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_tag_name")[6]
    def allTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/text_view_tag_name")[7]
    #消息中心
    def noticeTab(self):
        return self.driver.find_element_by_id("com.guokr.mentor:id/image_view_notices")